package com.ai.module.mj.constant.stringConstant;


public enum MessageType {
    /**
     * 创建.
     */
    CREATE,
    /**
     * 修改.
     */
    UPDATE,
    /**
     * 删除.
     */
    DELETE;

    public static MessageType of(String type) {
        switch (type) {
            case "MESSAGE_CREATE":
                return CREATE;

            case "MESSAGE_UPDATE":
                return UPDATE;
            case "MESSAGE_DELETE":
                return DELETE;
            default:
                return null;
        }
    }
}
